<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmCreateFeedBack">
        <f:view>
            <p:dialog id="dlgCreateFeedBack"
                      widgetVar="wgCreateFeedBack"
                      header="Create FeedBack"
                      draggable="true"
                      showEffect="fade"
                      hideEffect="clip"
                      >

                <p:panelGrid id="pnCreateFeedBack" columns="2">
                    <p:outputLabel value="FeedBackTitle:" for="feedBackTitle" />
                    <p:inputText id="feedBackTitle" value="#{feedBackManagement.feedback.feedBackTitle}" title="FeedBackTitle" maxlength="30" />
                    <p:outputLabel value="FeedBackContent:" for="feedBackContent" />
                    <p:inputTextarea id="feedBackContent" value="#{feedBackManagement.feedback.feedBackContent}" rows="6" cols="33" maxlength="300" />
                </p:panelGrid>

                <f:facet name="footer">
                    <p:commandButton  id="btnCreateFeedBack"
                                      value="Send"
                                      icon="ui-icon-check"
                                      style="margin:0"
                                      actionListener="#{feedBackManagement.create}"
                                      update=":frmViewFeedBack:dtViewFeedBack,
                                      :growl,
                                      :frmCreateFeedBack:pnCreateFeedBack"
                                      oncomplete="FeedBackManagementRequest(xhr, status, args)"
                                      />
                    <p:commandButton id="btnCancelCreateHostpital"
                                     value="Cancel"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     onclick="wgCreateFeedBack.hide();"
                                     />
                </f:facet>
            </p:dialog>
        </f:view>
    </h:form>
</html>
